package org.project.single.controller.force;

import org.project.single.pojo.dto.auth.AuthUserInfo;
import org.project.single.pojo.dto.auth.UserInfoAuthDto;
import org.project.single.utils.LoginHelper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.stone.project.baseCommon.pojo.vo.R;

/**
 * 认证信息接口
 */
@RestController
@RequestMapping("/force/auth")
public class AuthInfoController {
    /**
     * 获取用户登录信息
     * @return
     */
    @GetMapping("getAuthInfo")
    public R<UserInfoAuthDto> getAuthInfo(){
        return R.ok(LoginHelper.getUserInfo().getUserInfoAuthDto());
    }
}
